package ru.kipriz.todoly.api.dao;

import ru.kipriz.todoly.api.entities.ItemObject;
import ru.kipriz.todoly.api.entities.ProjectObject;

import java.util.List;

/**
 * <p>Copyright: Copyright (c) 2010</p>
 *
 * @author Andrey Volkov
 *         <br/>Date: 12/13/10
 */
public interface ProjectObjectDao
{
    public List<ProjectObject> getAll();

    public ProjectObject createProject(ProjectObject project, String... fields);

    public ProjectObject getById(long id);

    public ProjectObject delete(long id);

    public ProjectObject update(ProjectObject projectObject, String... fields);

    public List<ItemObject> getItems(long id);

    public List<ItemObject> getDoneItems(long id);
}
